home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8606 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: C compiling question
  5. Date: 03 Mar 1996 05:56:02 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Mar2225602@qcd.lanl.gov>
  8. References: <3138D53F.41C6@mashie.ece.jhu.edu>
  9. NNTP-Posting-Host: qcd.lanl.gov
  10. Mime-Version: 1.0
  11. Content-Type: text
  12. In-reply-to: Chenyang Xu's message of Sat, 02 Mar 1996 18:09:51 -0500
  13.  
  14. In article <3138D53F.41C6@mashie.ece.jhu.edu>
  15. Chenyang Xu <chenyang@mashie.ece.jhu.edu> writes:
  16.  
  17. <snip>
  18. CX: void print_msg1()
  19. CX: {
  20. <snip>
  21. CX: }
  22. CX: 
  23. CX: ===foo2.c===
  24. CX: void print_msg2()
  25. CX: {
  26. CX:   printf("foo2.c\n");  
  27. CX:   print_msg1();
  28.  
  29. When the compiler sees this, it generates a declaration `extern int
  30. print_msg1()'. As this declaration is actually incorrect, anything can
  31. happen. 
  32.  
  33. CX:   return;
  34. CX: }
  35.  
  36. Cheers
  37. Tanmoy
  38. --
  39. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  40. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  41. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  42. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  43. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  44. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  45.